Limit GUI updates the the main thread