Updated logic in implode_list to fix rQBEX3fbd801437c00c173feb58a5845cb68ea0cdd083