Added knot functions.