Refactored config into its own module