Update bg.php