Added create_output_node() function. Still a work in progress.