Push, pop, save, and retrieve environments