Adding PID file