Separated some code between pages.