Added magnet field setting to in-thread function ConstructSDandField/ It
works.