Implement dependency building.