What does the mediator do?