Improve knot-tying, and only set alarm if not already set.