Add checking of page loading.