main_writer_thread_proc(): Re-instate removed condition