Got a lattice integration working.