Added easing C code