Improved module pattern and examples.