Implement standalone script handling.