Make data directory a parmeter.