Integration & Middleware Stats Code