Added search for pid