Now actually serializing the tree entries (I think)