Added require function to export