Stop the code on the last line and see what k & n contain.