Extracting files from device