Implement index mode.