Modified facet script