Added Safe download support for package downloads