Added history file downloading and uploading.