Implementing dynamic grid cell sizes.