which the Buddha responded by choosing Ānanda. Ānanda agreed to take on the position, on the condition that he did not receive any material benefits from the Buddha. Accepting such benefits would open him up to criticism that he chose the position because of ulterior motives. He also requested that the Buddha allow him to accept invitations on his behalf, allow him to ask questions about his doctrine, and repeat any teaching that the Buddha had taught in Ānanda's absence. These requests would help people trust Ānanda and show that the Buddha was sympathetic to his attendant. Furthermore, Ānanda considered these the real advantages of being an attendant, which is why he requested them. The Buddha agreed to Ānanda's conditions, and Ānanda became the Buddha's attendant, accompanying the Buddha on most of his wanderings. Ānanda took care of the Buddha's daily practical needs, by doing things such as bringing water and cleaning the Buddha's dwelling place. He is depicted as observant and devoted, even guarding the dwelling place at night. Ānanda takes the part of interlocutor in many of the recorded dialogues. He tended the Buddha for a total of 25 years, a duty which entailed much work. His relationship with the Buddha is depicted as warm and trusting: when the Buddha grew ill, Ānanda had a sympathetic illness; when the Buddha grew older, Ānanda kept taking care of him with devotion. Ānanda sometimes literally risked his life for his teacher. At one time, the rebellious monk Devadatta tried to kill the Buddha by having a drunk and wild elephant released in the Buddha's presence. Ānanda stepped in front of the Buddha to protect him. When the Buddha told him to move, he refused, although normally he always obeyed the Buddha. Through a supernatural accomplishment (; ) the Buddha then moved Ānanda aside and subdued the elephant, by touching it and speaking to it with loving-kindness. Ānanda often acted as an intermediary and secretary, passing on messages from the Buddha, informing the Buddha of news, invitations, or the needs of lay people, and advising lay people who wanted to provide gifts to the saṅgha. At one time, Mahāpajāpatī, the Buddha's foster-mother, requested to offer robes for personal use for the Buddha. She said that even though she had raised the Buddha in his youth, she never gave anything in person to the young prince; she now wished to do so.