Updated formatStatsReply method to use new member variables for statistics handling. Removed excess variable creation