Revised hold check code