Added loop and reset control to B-splines