Fixed beta calculation, now uses the new method if possible.