Splits into proper lists