Autproc: added ESRF specific code for avoiding lag problem