Added ability to specify a source directory