Added onChallenge callback to Connection