Better way to add dependencies