Improved getCollection() method