Let's write a script to automate that.