Update functions.cs