Added the MessageMiddleware