Split stats utils into stats file. Added methods to Data.