Finishing up stats code.