Added check for "host" variable