Moved in lots of i-host generic code.