Ganesha agreed to write the Mahabharata on the condition that Vyasa provide non-stop dictation. Vyasa would recite continuously, and Ganesha would write simultaneously. If Vyasa paused, Ganesha would stop writing. This led Vyasa to compose complex verses to give himself time to think of the next part.