Call the function on initial page load.