ACPCDetect with proper outfile handling etc