Ported to windows.