Added options for middleware