Take parent PID as input, not text file with query