Magnetostatic focusing technique