Commit contains bugs. May be broken on Windows.