Modified to work with new log file