Checks the PID