Change to save hpi as jpi