Improved getList() method.