Adding all AAAI affordance code