playFrame() and saveFrame() written but not used