Update functions.c