Add load-win function back in