Middlewares now have the option to register other middlewares when they are registered