Change method to retrieve dependencies