Added support for commonjs.