Sample works on Windows