Fixed typo in calculation to find steep lines.