Properly build host indices.