Added rudimentary support for pregenerated scripts