Moved configuration logic to config.go