Fix code loading and screenshot retrieval.
Fix some more recording/playback issues.