Finished the indexer, and added a profiler tool to util.