Well, it's dumb, but it works. Mostly.