Refactored logging, Introduced EventDispatcher