Adds indirect relationships.