Added functions setAlpha and setBeta.