Prepare for training.