Add KOS algorithm