Expose functions to allow Html through main