Support for an optional variable hash component

Added the support for the variable hash to the iterator.