MAD library ported for Xentium core