Add stub functions for middlewares not installed