Added program argument '-o' for output directory.