Major refactor and adding grids system.