Flags restore_state and restore_events added to measure_response