Implement elements iterator.