Changed to use output directory.