Added Middleware interface.