Upgrading my ec script.