Added pid to log file name for filename uniqueness