Implemented the enumerator