Added checks to disable ModStats if in a development environment.