Adding subgrid variable assignment. Fixing another crash.
Updating complex example to show features.