Got the grid working, now to optimize.