Refactored grids. Moved variables to the setup file.