Append correct list for lengths.