Added ir code packet parsing.