Changed statistics from array to unordered map