Refactored countdown logic to sepperate module