Made _this a var instead of a global.