Updated hook detection.