Adding downloads functionality