Added N=0 to training loop to give baseline.