Adds environment to code in.