Added logging of pid (deleted by mistake)