More progress made, start of file write added.