Added Lagrange mult + tweaked CNNs