Fixed inefficiencies; converted radians to degrees