Added first version of facet script