Update functions.ps1