Refactor the unit check system, check units for thresholds and resets