@jmikola I will try to implement the functionality in a separated C file and import it into C++ to see if it works.