Confusing variable name. Should be $identity.