Externalize script