Inflection point - I need to integrate this more with C++; scrapping this code and re-scoping.