Added some function for Lattice