Added a create_node function.