I'm sure there is a better solution. Would love to hear if anyone knows.
Reply on news.ycombinator.com