Expose target environment to code