Add method to initialise grid.