Functions for Xero VM