Create mediator script