Finally get it working via C++