Download the "Peak Angle Detection" and import it in your program