Changed download-index function.