Refactoring min_or_sec variable.