Use pgrep to make sure the correct process is identified based on the PID