Fixed off-by-one bug, added a new Packet Type