Combined three tools into g_isdcalc.