Implement lookupattribute in backend