Porting Notes_Logic to C++ in progress...