Added function prototypes for C