Fixed new method to get process activation or deactivation checking PID