Runs only once per page.