Adding onInfluence method with behaviours.