Working implementation of multiple root nodes