Improve program flow a bit
Print time elapsed during record/playback
Fix a few bugs with debug playback