Update xrequire procedure.
Add decodify procedure.
Add encodify procedure.