Added cell factory. Expanded grid interface.