Pass host as a parameter