Exporting to window on distribute