Improve correlation length functions.