Add normalizeBySpring function and many related functions.