Added sanity checks to the hpta command.