Issue #2345163: Call reset() to ensure later calls to key() get the first item.
Refactor: Simplify calls to include().