Adds ability to specify environment.