Adjustments made with slope calculatations and peak finding.