Send more detailed messages to UI handler.
Move message types to a standalone module.