The first thing this function does is check if the environment has already been added, and if so, it exits.