These lines could be useful, because if we really pass desired=null then attempted_key will be returned as null too. I'm not sure that'll be correct then.