Added helper class for enumerating over a stream