Changed the loadingbar and output for detecting pids