Added CommandIterator and FormatCommandIterator