Added a useful iterator-based data access method.