Added data download functionality