Basic download functionality and command line script