Remove unused index method and some debugging output.