Made elementLookup an automatic function again