Added stuff to lagrange.