Refactored config.rb