Fix the bottom part where we figure out when we should next check.