Replicated stats changes made to sim.py