Finally worked out answer selection