Refactoring and starting to read all the frames. Offsets are no good though.