SCRIPT-8 v2

This is the SCRIPT-8 rewrite.