Allow adding a custom instance of the built-in middleware