Ensures distinct dependencies are only added