http://ask.metafilter.com/261516/Theres-got-to-be-a-better-way-to-do-this