Newtonsystem works now, magnitude check works