Put this inside the `estimate_angle` function.