Changed code to run under Windows.