Added node creation functionality