Added capture logic. Still missing Ko rule.