Fully working on mac. Though a bit of hack with the window refersh atm