Experimental code to prevent glitch jumping