Waits for emtpy queue before starting pacman process. NEEDS TESTING.