Add AddDevice and AddConnection functions