Commit all the middleware stuff