Tidy up g_confidence.c: Add confidence modification handler.