Refactored. Not yet from function next page.