Added leg angles calculation.