Added functionality to define hosts