Added interface for iterator.