Adapted for Windows machine (first commit).