This now takes in 2 inputs - hash file and outputfiletowrite to