Make compatible with CommonJS