Bug 1024920 - added a middleware for reporting needs