Added klt function