Getting environment toggling working