Update spring function.