Make directory a parameter.