Changed from saving frames to saving video files.