Expose variables used by inner functions