Revived the context creation code.