Changed insertPage() to accept stack overflow index.