Globalized the time, which reduced program size significantly. Added
button functionality with interrupts.