Refactored Countdown Timer