Changed log file handling