Adding missing function.