Add parameter for setting ouput directory.