Correcting time delay