A little tool we use at Omnico that I had to refactor.