Update functions.tex