Added basic download functionality.