The updated code for Main (now inputs stuff at "full speed" into the pipeline, at one frame a second)