Removed 'activePage' variable creating errors.