Corrected implementation of monthStats, cleanup still required