Updated BDS script