Changed stuff around so it would only need one root node