Added exception handling to hzero to increase efficiency