Moved config object into the main function.