implement double for progressbar percentage
Add clearing of cache in the copied version