Changed functionality to allow for input/output folders.