let simulation_mode_opt = ref Manual