Added training script.