ERT-710 / RO-12: Implemented contains function in gen_kw