Improved method design in IndexPool to be more stacktrace-friendly.