Now preventing attempts to insert duplicate nodes.