JC: refectoring form_stats.