Allow context to be set dynamically.