Removed hosts_line() function by consolidating into add_hosts_line()