Update last_state before sending initial hearbeat