Fixed missing function declaration