Removed Testing Code, and fixed issue with updating stats