Use parent var instead of window