Refactoring for beginCountDown code