Converted to CommonJS style