Moved Windows specific stuff to it's own class