Now settings nknots to match the knots.