Update functions.dart