Add main index functions