Fixed stats controller
Code updates