Add decode method