Added pid to logging