Various versions of this story exist however, including the one where the rats are considered to be the 20,000 soldiers who deserted a battle and upon realizing the sin they have committed, took shelter in the temple and were turned to rats by Karni Mata and vowed to serve her for atonement.