Stability calculations for the m = 1/n = 1 mode in heliotron configurations using the three-dimensional MHD equilibrium and stability (BETA) code