Fix tag_3_write to be forwards compatible.
Possibly finished tag_3.
Tests pass with tag_3 changes.