Additional logic to support multiple scripts.