Adding training process.