Connect insertNode functionality.