Migrate to use Iter() for reading stacks.
minor cleanups
Add missing changes related to migrating stack reading.