Little tested experimential code to find good way to detect signal change.