It's dirty, but it works.