Moved step count to main, and moved countdown to bottom to avoid race.