Save category state. Issue #18.