Added code to query funds for the main page.