Adding Stats functionality