Added drawing of grid.