Work on middleware.