Use environments to store a tracked environment instead of a list