Removed now unused diagnostic variable in recursive function