Use linked lists for environments