Fixed header state saving, Updated bot protocol