readFrames not working