The God of Death's Accountant

According to an article in today's issue of The Hindu, the town of Kanchipuram, not far from Chennai, has a shrine for Chitragupta, the younger brother of Yamraj, the God of Death. Chitragupta is "the chief minister and chief accountant of Lord Yama," and this is the only shrine he has. I don't know why -- you would think that this would be a useful entity to have on one's side.