Major overhaul to clean & recreate lookups. See readme comment for runtime flags.