Added the ability to calibrate slope.