Updated szc script, plus some small compatibility tweaks.