Progress on facets. Some reset functions added in a futile attempt to prevent bugs.