Some function prototypes for library