Got C function calling working. Return is working but needs to be made more robust.