Update BWExtension.php