Mainly modified Packet_TS module