Workable encode and decode methods