Removed unused variables.(nw)