Implement adding batch of dependencies
Return the correct type for both