Refactor download command.
Implement orphanted option in the download command.