Tweaked SPCode, will probably abandon this.