Added setting of word offsets during splitting and merging.