Name functions.

The main function is not named to avoid issues in IE.