Functions Added. index.php structure updated.