Changed to a global context object for general helper methods that need
a context.