Implemented kprime grading method, which was for some reason missing before.