Add a few additional functions for manipulating grids