Mirror sets up environment.