Moved KT export to KT function