Implement stats.