More general for variable restart files