Added Middleware to watch for events