First push of script. Updated for SR 2.0