Extend ported from bh