Added option to control the number of knots as argument to run.one