Change method to grab pids