Not required for this pull request, but it might be nice to create a configuration singleton so that we don't have to pass opts around too much.