Brian's code-under-development for the Intelligent Indexing project