Added option for assigning prefix for AD output files.