Solved memory allocation. Added progress to progress download bar