Modified for log files