diff --git a/utility/obsw_tmtc_printer.py b/utility/obsw_tmtc_printer.py
index cf40f43ca793cda0967486257e4ad8caf37e034d..563b3555f4f5fa27c93541baee2e5a38441f6fa6 100644
--- a/utility/obsw_tmtc_printer.py
+++ b/utility/obsw_tmtc_printer.py
@@ -219,13 +219,17 @@ class TmTcPrinter:
         """ Add a specific string to the current print buffer """
         self.__print_buffer += string_to_add
 
-    def add_print_buffer_to_file_buffer(self, add_cr_to_file_buffer: bool = False):
+    def add_print_buffer_to_file_buffer(self, add_cr_to_file_buffer: bool = False,
+                                        cr_before: bool = True):
         """
-        :return:
+        Add to file buffer. Some options to optimize the output.
         """
         if self.do_print_to_file:
             if add_cr_to_file_buffer:
-                self.__file_buffer += self.__print_buffer + "\r\n\r\n"
+                if cr_before:
+                    self.__file_buffer += "\r\n" + self.__print_buffer + "\r\n"
+                else:
+                    self.__file_buffer += self.__print_buffer + "\r\n\r\n"
             else:
                 self.__file_buffer += self.__print_buffer + "\r\n"