Change decode packet for more type of same packet. (use array)