Added PID lookup function.