Add expose and unexpose functions to manipulate the context.