Adding pid for the getRunningProcess() method