Adding some preliminary log file writing