And already goofed up. I thought I had tested it but I guess not. The attached version doesn't work if there are no updates. The current version is on Github: https://gist.github.com/weichert/4931be14cc93443ad74f