diff --git a/Python_script/prototype.py b/Python_script/prototype.py
index ed80793ab4221d8ac845ae0730eb7f00df781e65..2f59f42b6ea64b14788e3048bc8f7c2624d54572 100755
--- a/Python_script/prototype.py
+++ b/Python_script/prototype.py
@@ -200,14 +200,14 @@ class Measurements:
                         print('Measurement not stable. Retrying.')
                         break
 
-                    for measurement in supposedly_stable_measurements:
-                        if all_measurements_stable:
-                            measurement['EQUILIBRIUM_INDICATOR'] = TEMPERATURE_STABLE | HUMIDITY_STABLE |\
-                                                                   MAGNITUDE_STABLE | PHASE_STABLE |\
-                                                                   MEASUREMENT_STABLE
-                            do_another_measurement = False
-
-                        writer.writerow(measurement)
+                for measurement in supposedly_stable_measurements:
+                    if all_measurements_stable:
+                        measurement['EQUILIBRIUM_INDICATOR'] = TEMPERATURE_STABLE | HUMIDITY_STABLE |\
+                                                               MAGNITUDE_STABLE | PHASE_STABLE |\
+                                                               MEASUREMENT_STABLE
+                        do_another_measurement = False
+
+                    writer.writerow(measurement)
 
     def sleep_until(self, wakeup_time):
         remaining_sleep_time = wakeup_time - self.clock.time()