Moved the "list" all handles outside the loop.