Support for constructing square lattice.