Refactoring to CommonJS wrapped format.