Phase 2b complete.

Added the isResultKey function