Abu'l Fazl mentions another variation of the legend in his "Ain-i-Akbari": In 761 BCE, a sage called Mahabaha kindled a flame and established a fire temple, which started attracting several devotees. Later, the Buddhists, unhappy with these Brahminical rites, managed to get an order prohibiting this style of worship. The fire temple devotees then prayed to seek a hero who would overthrow Buddhism and restore their traditional faith. The "Supreme Justice" then conjured a hero from the now-cold fire temple. This hero, called Dhananjaya (or Dhanji), attained power in a short time and restored the Brahminical rites. He came to Malwa from Deccan, and established a government there. When his fifth-generation descendant Putaraja died childless, the nobles elected one Aditya Ponwar as his successor. The Paramara dynasty descended from Ponwar.