Update indexfunctions.php