Add function to read in output file from sample_var()