Add chain training & generation.