First working version! (On windows at least...)