Added missing fileprefix var to save_spot_data