Added recording positions of the bytes for writing.