Update BG.php