Add smart constructors for magnets