Host should be above if statement