Async InputStream processing
Merge with changes for QT