Changed create_host_state to return the host_state dict