Update packet format, add state packet