Update functions.inc