Clone Hari's scripts; refactor them to study decomposability