Better code for gathering mode stats
collision resolved