Added functionality to fill out the grid