Added Pause/Cancel and Resume functionality for downloadTask