We should put this stuff into a function; there's no need to pollute the global namespace.