Implemented mediator pattern for module interactions