The stability of a circular toroidal plasma under average magnetic well conditions with finite plasma pressure