Moved the Page executor into an seperated function to have it easier to change it