Issue #2: Added PID verification/check