Fixed for changes in host's datatype
Changed host from URL to string