Added before options to ensure is load order of the middleware