Gradient for L now works. Time for SGD.