Indicated two points of failure in encode and decode methods.