Added support for context parameter.