Treating to affect magnetic properties