capAct refactored to use output JSON object.