Cutting and Copying partially work. Need to figure out why pasting corrupts the file.