Added Lattice Size test function, making changes