Added missing function prototypes