Added support for use directly in qml + demo to show how it works