Added data buffer offset and length
Added PacketFactory