Removed old code
Added missing function prototype