Improved code sample.  Added EJ prefix to utility functions.