Addapted to non-windows.