Setting environment.