Windows Fix

Fixed my previous code to work on windows.