Added declarations for C functions