Changed how Packet class handles commands