Create main_with_PID