Added some function prototypes