Setting up the environment.