First attempt of making a windows compatible version