Added training for algorithm determining task completion.