Fixed numerous 'this' scope binding errors. This runs now.