Added file saving method and a simple requesting algorithm