Began working on Encode trait.