Add funcs for computing features.
Implement first cut at SA.