Added a possibility to define and use directories as input and output params.