Added function prototypes