Loop added to index.php as per request