Add ability to set options in Middleware