Made a mistake, treated length as a 16bit representation when it should be 32
I think I've got meld writing done but I need to test it.