Swift rewrite of KUCI application