New treatment uses magnets instead of drugs