Refactored out some loops that append content of one list to another.
Authored by: delphidabbler 2013-07-13
Parent: [r3146]
Child: [r3148]