Added BDGMacros