Change download resume function