Added custom callback middleware to methods