Added error checking to create command.