Working code before messing with timers and things.