Adding wrapper to interact with the code in C