Logging.
Implemented joining controller and refactored exception handling.