Modified lookup() to search by name