Added a new method to get the active PID