Removed iterator methods to avoid ambiguities with dependency injection.