Added magnetic field support to joinsims