Yeah, good call. There was actually a bug with the weight (`newNode.weight = token.contents` rather than `newNode.weight = newNode.content`)