Added C-API