Add two function for src/public_func.php