Ready callback middleware