Add encapsulation to avoid scope issues.

Avoid errors when you simply copy/paste the file in your project.