Fiddled with MainActivity for safety (getPageTitle(int)) and maintenance (getCount()).