Adds mediator pattern