Exported some functions to maf.js