Add type to create node method