Add xhive functions.