Fixed unreferenced N variable.