Added pget as download feature to make more modular and not repeat function