Added a wrapper for env.