Main updated to use the new extension finding code
PID stuffs