Implemented rpacket_init