Removing unnecessary pages.