Figuring out the structure for getting the encoded value