Big optional change to aver. Much, much faster, but uses scipy (Falls back to old style if not available)