Finished training logic.