Wish I could take credit for this gem.