Changed to use C++ interface of VicKit.