Added record analysis to doHkpg like doGps has