Changing variables so they can fit to multiple grids in one page.