One of these days, someone should write a docstring for this file....