Added check at the next midnight