Improved subset iteration