Update context manager.