Add config load & variant parsing codes.