Working version with two grids.