Added facet relationship functionality.