Middleware was missing the options parameter