Changed module to use node export