Update lib/app.function.php