Got rid of extraneous calls to rebuildLookups().