Remove unnecessary lists and append directly