Forgot to commit the resetStats function