Added pid output to log file.