Global Hypoellipticity and Spectral Theory.