BDS script changes