Added basic downloading functionality