Implemented startPageIndex functionality.