Added some logging to the dispatcher and UI