Export function, also Alberto pulled out JS