Plugin working, in C++ format