Better way to fetch the needed libraries