Added C function