Go back to fitting lattice directly. Option to minimize residual while maximizing lattice weight