I suggest to rename `attemptKey` to `attemptKeyFor`