 		}
 	}
 	
-	func readBytesUntilError(data: Data = Data(bytes:[]), updateProgress: ((UInt8)->Void)? = nil, handler reply: @escaping (ReadResponse)->Void) {
+	func readBytesUntilError(data: Data = Data(bytes:[]), updateProgress: ((_ progress: UInt8)->Void)? = nil, handler reply: @escaping (_ response: ReadResponse)->Void) {
 		let offset = UInt16(data.count)
 		updateProgress?(UInt8(offset/256))
 		readBytes(length: 0, offset: offset) {

		}
	}
	
	/// Select dedicated file and read all its bytes. This is a helper function that combines the SELECT (section 7.1.1) & READ BINARY (section 7.2.3) commands from ISO 7816-4.
	///
	/// - Parameters:
	///   - file: Absolute path to dedicated file without the MF Identifier
	///   - updateProgress: function that gets called while reading the large files and informs the progress of the read command
	///   - reply: function that gets called when the file is read
	func read(file: [UInt8], updateProgress: ((UInt8)->Void)? = nil, reply: @escaping (ReadResponse)->Void) {
		select(dedicatedFile: file) {
			if let error = $0 {
				reply(.error(error) )

		self.dateStyle = style
	}
}
