Changed to use the training data instead