uSTL ported from SWEB, untested