Removed a magic number, added an enum Packet Type