Updating packet code