List traversal fix, append to list then reverse at end to preserve ordering