Working version of the frame-reader.