SwC no exceptions or errors (algorithm not tested)