Added missing function definition