Wrap console in a context