Implemented core functions to download.