Added different input and output directories.