First working version.  Facet is broken though.