Added broker to middleware.