Move window arg into script
Updated docs