Correlation simulation functions.