Update to functions file