Added the ability to configure stats to care only about certain granularity (hour,day,month, or alltime).