Setting up environment.