Added abs to optimal_angle