Added list encoding.