Updated standalone script.