function System.add(M)if not arcInstances[M]then arcInstances[M]=true numInstances=numInstances+1 M.segmentsFolder.Parent=MainFolder M.part.Parent=MainPartFolder if M.dynamic then dynamicInstances[M]=true end updateConnection()end end function System.contains(M)return arcInstances[M]~=nil end

function System.add(arc)
	if not arcInstances[arc] then
		arcInstances[arc] = true
		numInstances = numInstances + 1
		arc.segmentsFolder.Parent = MainFolder
		arc.part.Parent = MainPartFolder
		if arc.dynamic then
			dynamicInstances[arc] = true
		end
		updateConnection()
	end
end

function System.contains(arc)
	return arcInstances[arc] ~= nil
end
