Adds phrase support for both encode and decode methods