Added Legendre polynomials.