Added script support.

TODO: Debug script support.