Thinker. My guess would be the idea of gods developed during the early Upper Paleoloithic as as the improved hunting technology spread and large animals died out. It became advantageous to combine into larger groups than just small family bands. In other words it helped organise society. Still used for that purpose, or to influence large elements in society to support particular political programs.