Working version of identify