Add some debug code to model context, fix some script errors, testing testing testing.