Added dynamic grids (Closes #38).