Got PID status working in main