Actually works now.  Still doesn't draw the grid, but it doesn't throw
any errors.