I agree @cyli. IMHO, code can remain the same since `log` clearly closes it on this function. It's dirty but mutable state is supposed to be dirty - True words @dreid :)