Implementing kernacc()