Removed excess createNode function.