Add environment abstraction.