All operations (mostly) working. Has some timing issues probably becasue of scanning for input every second.