Added C++ Functions