Handling PID assignments