Fixing up createNode. May have to move it later