Added cancelTraining
Anytime flag
Anytime function