Now code works under windows