Added function clearHPTable