Initial version of lattice-insert.