Changed example to work on both Windows and Mac.