adding the rest_period function so we just reset to 0 on enable.