Add decoder for JP's encoder