Refactor pretty_download