Use functional programming style for formatting the hosts.
Use functional programming style for formatting the options.