 	    std::cout << "Executing inverse FFT" << std::endl;
       c2rfft.execute(d_fseries.get_data(),d_tim.get_data());
 
+      //Utils::dump_device_buffer<float>(d_tim.get_data(), d_tim.get_nsamps(), "deredden_ifft.dump");
+
+
       CandidateCollection accel_trial_cands;    
       PUSH_NVTX_RANGE("Acceleration-Loop",1)
 

  	      std::cout << "Resampling to "<< acc_list[jj] << " m/s/s" << std::endl;
  	    resampler.resampleII(d_tim,d_tim_r,size,acc_list[jj]);

  	    if (args.verbose)
  	      std::cout << "Execute forward FFT" << std::endl;
  	    r2cfft.execute(d_tim_r.get_data(),d_fseries.get_data());

  	    if (args.verbose)
  	      std::cout << "Form interpolated power spectrum" << std::endl;
  	    former.form_interpolated(d_fseries,pspec);

  	    if (args.verbose)
  	      std::cout << "Normalise power spectrum" << std::endl;
  	    stats::normalise(pspec.get_data(),mean*size,std*size,size/2+1);

  	    if (args.verbose)
  	      std::cout << "Harmonic summing" << std::endl;

  std::stringstream xml_filepath;
  xml_filepath << args.outdir << "/" << "overview.xml";
  stats.to_file(xml_filepath.str());

  std::cerr << "all done" << std::endl;
  
  return 0;
}
