Fixing build and updating stats code

Fixing build and updating stats code