Review: Add the checking for input and output folder.