Add slope calculation.