Added missing function for Windows