New resume code

Added code to ensure continuation of previous downloads