Little less magic numbers and 0x01 packet parsing and response