Internal lookup functionality