Adds decode functionality.