Added mb_* functions