Refactor for config. Trying to minimize config calls without just
storing it as a global.