Add bd function and completion