---If time corr is zero, try fitting only the central peak. Implement
time window for time correlation.