Adding support for external scripts