Begin conditionals for loading the environment