Corrected logic which allowed messages to be sent within hour at end of range