Messed around trying to get the code to work on windows, did not succeed