Adds correlation calculation.