Add decode utility