Added stats hook