Updated bd as a function, instead of alias