Added generalized packet format and added Packet Type field.