Removed unnecessary gets in stat function