Changing an actor's behavior using context