Implemented download and openWith functionality.