Managing mediation