Few changes related with the use of lattice functionz