Moved config functions to a new file.