More on class.index.inc.php for index calculation API