Adds hosts state logic