Added ksjc function