Wrote the item switch decoder.