Start of environment wrangling