Added checks for the insertion of a full mediation process.