Removed print calls, added win.close