Added in functionality to add nodes in edit mode.