Add the ability to disable middleware