Changes for logfile to be a separate file