Adding a btsetmaphex function.