let direction_opt = ref Forward