Updated websfunctions.php