Extending environment code